package cn.itcast.service;

import cn.itcast.entity.PageResult;
import cn.itcast.entity.Result;
import cn.itcast.pojo.CheckGroup;
import cn.itcast.pojo.Member;

import java.util.List;
public interface MemberService {
    /**
     * 分页查询会员信息
     *
     * @return
     */
    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    /**
     * 添加新会员
     * @param member
     */
    void add(Member member);

    Result addMemBer(Member member);

    /**
     * 更新会员信息
     * @param member
     */
    void update(Member member);

    /**
     * 根据id编辑会员信息
     * @param id
     * @return
     */
    Member findById(Integer id);


    void updateStatus( Integer id,Integer status);

    Member findByTelephone(String phone);
}
